-- GENERATED SPELL FOR [Devouring Ectoplasm] --


function spell0_3638(pUnit, Event) --@Clone,Self--
pUnit:FullCastSpellOnTarget(7952,pUnit)
pUnit:RegisterEvent('Sorts_3638', 2500, 1)
end

function Sorts_3638(pUnit, Event)
local choix_sorts_3638 = math.random(0, 0)
if choix_sorts_3638 == 0 then
pUnit:RegisterEvent('spell0_3638', 1, 1)
end
end

function mob3638_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3638', math.random(1500, 3000), 1)
end

function mob3638_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3638_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3638_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3638, 1, 'mob3638_Action')
RegisterUnitEvent(3638, 2, 'mob3638_Leave')
RegisterUnitEvent(3638, 3, 'mob3638_Kill')
RegisterUnitEvent(3638, 4, 'mob3638_Die')
